package com.xzc.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xzc.seckill.pojo.User;
import com.xzc.seckill.vo.LoginVo;
import com.xzc.seckill.vo.RespBean;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 徐生
 * @version 1.0
 * Date 2024/3/31 20:44
 * Description: UserService
 */
public interface UserService extends IService<User> {
    //完成用户的登录校验
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    //根据Cookie（ticket）获取用户信息
    User getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);

    //更新密码——假定password以明文方式传入（只为测试）
    RespBean updatePassword(String userTicket, String password,HttpServletRequest request, HttpServletResponse response);
}
